<?php

class BlogCommentArray{
	
	private $blogcomments = array();
	
	public function __construct(){
		
	}
	//Lägger till en kommentar i arrayen.
	public function add(Blogcomment $blogcomment){
		$this->blogcomments[] = $blogcomment;
	}
	//Hämtar arrayen.
	public function getBlogcomments(){
		return $this->blogcomments;
	}
	
}

class BlogComment{
	
	private $id;
	private $title;
	private $comment;
	private $posttitle;

	//En konstruktor.
	public function __construct($id, $title, $comment, $posttitle){
		$this->id = $id;
		$this->title = $title;
		$this->comment = $comment;
		$this->posttitle = $posttitle;
		
	}
	
	public function getId(){
		return $this->id;
	}
	
	public function getTitle(){
		return $this->title;
	}
	
	public function getComment(){
		return $this->comment;
	}
	
	public function getPostTitle(){
		return $this->posttitle;
	}
	
	
}